<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/static/admin/css/bootstrap.css">
    <script src="/static/admin/js/jquery-2.1.0.min.js"></script>
    <script src="/static/amdin/js/bootstrap.min.js"></script>

</head>
<body>
	<div class="container cus-container">
        <h3 class="text-center" style="font-weight:bold">修改Banner</h3>

        <form action="/admin/banner/update" method="post" enctype="multipart/form-data">

            <div class="form-group">
              <label for="user">Banner图片：</label>
                <p>
                    <img th:src="'/upload/'+${banner.imgSrc}" style="width:300px">
                </p>
              <p>
              	<input type="file" class="form-control" name="file">
              </p>
            </div>
            
            <div class="form-group">
              <label for="user">Banner状态：</label>
              <label class="radio-inline">              	
				<input type="radio" name="isShow" id="inlineRadio1" value="1" checked>显示
			  </label>
				<label class="radio-inline">				  
				  <input type="radio" name="isShow" id="inlineRadio1" value="0">隐藏
				</label>
            </div>

            <div class="form-group">
                <label for="user">关联的路线：</label>
                <select class="form-control" name="routeId">
                    <span th:each="route:${routeList}" >

                        <option th:value="${route.routeId}" th:selected="${route.routeId == banner.routeId}" th:text="${route.routeName}"  ></option>
                    </span>
                </select>
            </div>
            <div class="text-center">
                <input type="hidden" name="bannerId" th:value="${banner.bannerId}"/>
                <input type="hidden" name="imgSrc" th:value="${banner.imgSrc}"/>
                <input type="hidden" name="_method" value="PUT"/>
                <input type="submit" class="btn btn-primary" value="提交">
                <button type="reset" class="btn btn-default">重置</button>   
            </div>         
          </form>
       
    </div>
</body>
</html>